package com.yanqu.road.entity.log.cross.fivehero;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

import java.util.Date;

@FieldTypeAnnotation(desc = "五雄争霸-门客战力变更", tableName = "t_l_ck_activity_fivehero_log_patrons", autoSave = true, uploadCk = true, isCross = true)
public class LogFiveHeroPatronsUpdate extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "分组id", isIndex = true)
    private int groupId;
    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "阵营id")
    private int campId;
    @FieldTypeAnnotation(desc = "门客id")
    private int patronsId;
    @FieldTypeAnnotation(desc = "1士兵投奔事件,2战力同步,3阵营等级提升，4道具提升")
    private int way;
    @FieldTypeAnnotation(desc = "变更战力值")
    private long value;
    @FieldTypeAnnotation(desc = "变更前")
    private long oldValue;
    @FieldTypeAnnotation(desc = "变更后")
    private long nowValue;

    public LogFiveHeroPatronsUpdate(int groupId, int activityId, long userId, int campId, int patronsId, int way, long value, long oldValue, long nowValue) {
        this.groupId = groupId;
        this.activityId = activityId;
        this.userId = userId;
        this.campId = campId;
        this.patronsId = patronsId;
        this.way = way;
        this.value = value;
        this.oldValue = oldValue;
        this.nowValue = nowValue;
    }

    public long getUserId() {
        return userId;
    }
}
